Skip to content

[ROCm][Bugfix] Return empty UUID string when amdsmi uuid query fails#48708

Draft
ChuanLi1101 wants to merge 3 commits into
vllm-project:mainfrom
ChuanLi1101:bugfix/rocm-device-uuid-unbound
Draft

[ROCm][Bugfix] Return empty UUID string when amdsmi uuid query fails#48708
ChuanLi1101 wants to merge 3 commits into
vllm-project:mainfrom
ChuanLi1101:bugfix/rocm-device-uuid-unbound

Conversation

@ChuanLi1101

@ChuanLi1101 ChuanLi1101 commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

RocmPlatform.get_device_uuid caught AmdSmiException from amdsmi_get_gpu_device_uuid but did not return, leaving device_uuid unbound. The trailing return device_uuid then raised UnboundLocalError, masking the original amdsmi error. Return "" on failure, matching the handling of the preceding handle-query block.

Co-authored-by: Cursor

Purpose

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

ChuanLi1101 and others added 2 commits July 14, 2026 21:02
RocmPlatform.get_device_uuid caught AmdSmiException from
amdsmi_get_gpu_device_uuid but did not return, leaving device_uuid
unbound. The trailing `return device_uuid` then raised
UnboundLocalError, masking the original amdsmi error. Return "" on
failure, matching the handling of the preceding handle-query block.

Signed-off-by: Chuan Li <chuali@amd.com>
Co-authored-by: Cursor
Co-authored-by: Cursor <cursoragent@cursor.com>
@mergify mergify Bot added rocm Related to AMD ROCm bug Something isn't working labels Jul 15, 2026
@github-project-automation github-project-automation Bot moved this to Todo in AMD Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rocm Related to AMD ROCm

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant